<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<head>
   <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
   <title>{$spf.app_name}{if $page_title} - {$page_title}{/if}</title>
   <link rel="icon" href="/favicon.ico" type="image/vnd.microsoft.icon"/>
   <link rel="stylesheet" type="text/css" media="screen,print" href="/css/sitrack.css" />
   <link rel="stylesheet" type="text/css" media="print" href="/css/print.css" />
   <!--[if IE]><link rel="stylesheet" type="text/css" href="/css/ie.css" /><![endif]-->
   
   <!-- Sam Skin CSS --> 
   <link rel="stylesheet" type="text/css" href="/yui/container/assets/skins/sam/container.css" /> 
   
   <!-- OPTIONAL: You only need the YUI Button CSS if you're including YUI Button, mentioned below. --> 
   <link rel="stylesheet" type="text/css" href="/yui/button/assets/skins/sam/button.css" /> 
   
   <!-- Dependencies -->
   <script type="text/javascript" src="/yui/yahoo/yahoo-min.js"></script>
   <script type="text/javascript" src="/yui/dom/dom-min.js"></script>
   <script type="text/javascript" src="/yui/event/event-min.js"></script>
   
   <!-- OPTIONAL: YUI Button (these 2 files only required if you want Dialog to use YUI Buttons, instead of HTML Buttons) --> 
   <script type="text/javascript" src="/yui/element/element-beta-min.js"></script> 
   <script type="text/javascript" src="/yui/button/button-min.js"></script> 
    
   <!-- Source file --> 
   <script type="text/javascript" src="/yui/container/container-min.js"></script> 
   
   <script type="text/javascript" src="/js/spf.js"></script>
   <script type="text/javascript" src="/js/sitrack.js"></script>
   
   <script type="text/javascript">
      spf.sitrack.full_url = '{$spf.full_url}';
      spf.sitrack.base_url = '{$spf.base_url}';
   </script>
   
</head>

<body class="yui-skin-sam">

<div id="page">

	<div id="header">
		<p id="app_name">{$spf.app_name}{if $page_title} - {$page_title}{/if}</p>
		{if $spf.current_user}<p id="who"><a href="{$spf.base_url}/users/myinfo">{$spf.current_user.display_name}</a> | <a href="{$spf.base_url}/users/signout">Sign Out</a></p>{/if}
	</div>

	{if $spf.current_user}
	<div id="nav">
      <ul>
   		<li><a id="nav_overview" href="{$spf.base_url}/">Dashboard</a></li>
         <li><a id="nav_tickets" href="{$spf.base_url}/tickets/{if $current_project}browse/{$current_project.id}{/if}">Tickets</a></li>
         <li><a id="nav_milestones" href="{$spf.base_url}/milestones">Milestones</a></li>
         <li><a id="nav_reports" href="{$spf.base_url}/reports">Reports</a></li>
         <li><a id="nav_admin" href="{$spf.base_url}/admin">Admin</a></li>
   	</ul>
   	<form id="frm_quick_search" action="{$spf.base_url}/tickets/quick_search" method="post">
               <div>
                  <button type="submit" name="submit_frm_quick_search" value="1"></button>
                  <input type="text" id="quick_search" name="quick_search" value="" />
               </div>
            </form>
   	<div class="clear"></div>
   </div>
   {/if}
